GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( 78dc15...09f70f )
by Vladimir
38s
created

postStreamId.test.js ➔ ???   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 20

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 20
rs 9.4285

1 Function

Rating   Name   Duplication   Size   Complexity  
A postStreamId.test.js ➔ ... ➔ ??? 0 5 1
1
/** global: jest */
2
3
const jsonRequest = require('./../../../stubs/routes/jsonRequest');
4
const plainRequest = require('./../../../stubs/routes/plainRequest');
5
const router = require('./../../../../../src/routes/index');
6
7
describe('Index routes.', () => {
8
  test('POST plain text into page with certain streamId', (done) => {
9
    const response = { status: jest.fn(), send: () => done() };
10
11
    router.handle(plainRequest, response);
12
  });
13
14
  test('POST JSON data into page with certain streamId', (done) => {
15
    const response = { status: jest.fn(), send: jest.fn() };
16
    global.socket = {
17
      emit: (type, data) => {
18
        expect(type).toBe('log');
19
        expect(typeof data).toBe('object');
20
        done();
21
      },
22
    };
23
24
    router.handle(jsonRequest, response);
25
  });
26
});
27